package fun.eliauk.treedemo.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import fun.eliauk.treedemo.utils.mask.FieldMask;
import fun.eliauk.treedemo.utils.mask.MaskSerialize;
import fun.eliauk.treedemo.utils.mask.enums.MaskEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
* <p>
    * 
    * </p>
*
* @author xi-zijin
* @since 2023-12-03
*/
@Data
@TableName("map")
public class Map implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId("id")
    private Integer id;

    @TableField("name")
    @FieldMask(MaskEnum.CHINESE_NAME)
    private String name;

    @TableField("parent_id")
    private Integer parentId;

    /**
     * 子节点
     */
    @TableField(exist = false)
    private List<Map> childMap;
}




